use std::process::Command;
extern crate embed_resource;
fn main() {
    let _output = if cfg!(target_os = "windows") {
        embed_resource::compile("icon.rc");
        Command::new("cmd")
            .arg("/c")
            .arg("packfolder")
            .arg("views")
            .arg("src\\resource.rc")
            .arg("-binary")
            .output()
            .unwrap()
    } else {
        Command::new("packfolder")
            .arg("views")
            .arg("src/resource.rc")
            .arg("-binary")
            .output()
            .unwrap()
    };
    println!("cargo:rerun-if-changed=/views");
    // println!(
    //     "cargo:warning={:#?}",
    //     String::from_utf8(output.stdout).unwrap()
    // );
}
